import service from '../network/service'

// 校验手机号是否存在
export const checkExist = (data) => {
    return service({
        url: '/user/checkExist',
        method: 'post',
        data: data
    })
};
/*
{
    "mobileAccount":"13145310973",
    "captchaToken":"a220813d-8827-49f8-af5c-e3dd78c45f99"
}
*/

// 获取验证码
export const getSmsCode = (params) => {
    return service({
        url: '/sms/byReg',
        method: 'post',
        params: params
    })
};
/* /sms/byReg?mobile=17662433763&token= */

// 校验验证码
export const regSmsCode = (data) => {
    return service({
        url: '/reg/validate',
        method: 'post',
        data: data
    })
};

// 确认注册
export const confirmRegister = (data) => {
    return service({
        url: '/reg/do',
        method: 'post',
        data: data
    })
};